package com.txf.coomon.ui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

import com.txf.coomon.R;
import com.txf.ui_mvplibrary.interfaces.INavigationBar;
import com.txf.ui_mvplibrary.ui.view.BaseViewGroup;

/**
 * @author txf
 * @create 2019/2/13 0013
 * @
 */

public class SimpleNavigationBar extends BaseViewGroup implements INavigationBar {
    public SimpleNavigationBar(Context context) {
        super(context);
    }

    public SimpleNavigationBar(Context context, AttributeSet attrs) {
        super(context, attrs);
    }
    public SimpleNavigationBar(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
    @Override
    protected void onCreate(Context context) {
        View.inflate(context, R.layout.view_navigationbar_simple, this);
    }

    @Override
    public View getView() {
        return this;
    }

    @Override
    public LayoutParams getViewLayoutParams() {
        return new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    }

}
